<!DOCTYPE html>
<html>
	<head>
		<title> sagapo project </title>
		<meta charset="utf-8" />
		<link type="text/css" rel="stylesheet" href="{CFG->PATH->WWW}/css/module.css" />
		<link type="text/css" rel="stylesheet" href="{CFG->PATH->WWW}/css/jquery-ui.css" />
		<link type="text/css" rel="stylesheet" href="{CFG->PATH->WWW}/css/jquery.ui.plupload.css" />
		
		<script src="{CFG->PATH->WWW}/js/jquery.min.js"></script>
		<script src="{CFG->PATH->WWW}/js/jquery-ui.min.js"></script>
		<script src="{CFG->PATH->WWW}/js/jquery.validate.min.js"></script>
		<script src="{CFG->PATH->WWW}/js/jquery.validate.ko.js"></script>
		<script src="{CFG->PATH->WWW}/js/jquery.ui.datepicker-ko.js"></script>
		<script src="{CFG->PATH->WWW}/js/tiny_mce/tiny_mce.js"></script>
		<script src="{CFG->PATH->WWW}/js/common.js"></script>
		
		<script>
			$(function() {
				
				$("#left").click(function() {
					sagapo.section_original();
					return false;
				});
				
				$("#header .image .login").click(function() {
					loadDialogLogin('/member/login', null, $(this).position());
					return false;
				});
				
				$("#header .image .refresh").click(function() {
					location.replace(location.href);
					return false;
				});
				
				// 버튼 stylesheet 입히기
				$("button", ".button" ).button();
				
			});
		</script>
	</head>

	<body>
		<div id="wrap">
			<header id="header" data-role="header">
				<h1 class="title">akddd &amp; gaeri</h1>
				<div class="logined">
					{? CFG->USER}
					<div class="info"><strong>{CFG->USER->name}</strong>님 반갑습니다.</div>
					<div class="image">
						<a href="/member/doLogout" class="logout">
							<img src="{CFG->PATH->IMAGE}/iconset/logout.png" alt="로그아웃" />
						</a>
					</div>
					{:}
					<div class="image">
						<a href="/member/doLogout" class="login">
							<img src="{CFG->PATH->IMAGE}/iconset/login.png" alt="로그인" />
						</a>
					</div>
					{/}
					
					<div class="image">
						<a href="{CFG->PATH->WWW}" class="refresh">
							<img src="{CFG->PATH->IMAGE}/iconset/refresh.png" alt="새로고침" />
						</a>
					</div>
				</div>
			</header>
			<hr class="hide" />
			<div id="body">
				<aside id="left">
					<menu>
					{# menu}
					</menu>
				</aside>
				<hr class="hide" />
				<div id="container">
					<section class="section {page->class}">
						<h2 class="hide">{page->title}</h2>
						
						<div class="container">
						{# body}
						</div>
						<hr class="hide" />
						<article class="article">
							<div class="article_container">
							
							</div>
						</article>
					</section>
				</div>
			</div>
		</div>
	</body>
</html>
